package com.kxmall.web.controller.rider.service;

import com.kxmall.common.core.domain.PageQuery;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.rider.domain.bo.KxRiderCycleBo;
import com.kxmall.rider.domain.vo.KxRiderCycleVo;

import java.util.Collection;
import java.util.List;

/**
 * 配送员周期Service接口
 *
 * @author kxmall
 * @date 2023-09-21
 */
public interface IKxRiderCycleService {

    /**
     * 查询配送员周期
     */
    KxRiderCycleVo queryById(Long id);

    /**
     * 查询配送员周期列表
     */
    TableDataInfo<KxRiderCycleVo> queryPageList(KxRiderCycleBo bo, PageQuery pageQuery);

    /**
     * 查询配送员周期列表
     */
    List<KxRiderCycleVo> queryList(KxRiderCycleBo bo);

    /**
     * 新增配送员周期
     */
    Boolean insertByBo(KxRiderCycleBo bo);

    /**
     * 修改配送员周期
     */
    Boolean updateByBo(KxRiderCycleBo bo);

    /**
     * 校验并批量删除配送员周期信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
